﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<List<kysec.RAL.EFToMySql.vw_tb_user>>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Details</title>
    <script src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Scripts/jquery-1.4.1.min.js") %>"></script>
    <link rel="stylesheet" type="text/css" href="../../Content/back/css/skin.css" />


<script type="text/javascript">
    function deleteInfo() {
        if (confirm("确认删除信息？删除后将无法恢复！")) {
            $.ajax({
                url: "/User/DeleteUserInfo",
                type: "post",
                cache: false,
                data: "userId=" + $("#userId").val(),
                suceess: function (reslut) {
                    if (result == "0") {
                        alert("删除失败！");
                    } else if (result == "1") {
                        alert("删除成功！");
                    } else if (result == "2") {
                        alert("删除时发生异常！");
                    }
                }
            });
        }
    }
</script>
</head>
<body>
    <div>
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" height="29" valign="top" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_leftbg.gif") %>"><img src="<%=Url.Content

(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/left-top-right.gif") %>" width="17" height="29" /></td>
    <td width="100%" height="29" valign="top" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/content-bg.gif") %>"><table width="100%" 

height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">完善资料</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_rightbg.gif") %>"><img src="<%=Url.Content

(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/nav-right-bg.gif") %>" width="16" height="29" /></td>
  </tr>

  <tr>
    <td height="71" valign="middle" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_leftbg.gif") %>">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table border="0" cellpadding="0" cellspacing="0"> 
     <tr>
            <td class="left_txt">当前位置：<a href="/User/InfoList">用户管理</a> >> 完善用户资料</td>
      </tr></table>
   <div style="background-color:#97b9f0;height:1px;margin-bottom:10px;"></div>
    
        <div style="text-align:center;">
        <%if (Model == null)
          { %><span style="color:Red;font-size:xx-large;">没有任何用户信息已完善，请完善其信息……</span><a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/User/InfoList" title="点击返回用户列表" 

style="margin-left:10px;">返回</a><%}
          else
          {
              foreach (var item in Model)
              { %><input type="hidden" id="userId" value="<%:kysec.CR.Common.EncodeByBase64.Encode(item.c_uq_userId.ToString()) %>"/>
            <table border="0" width="100%" cellpadding="0" cellspacing="0">
            <tr><td colspan="4" width="100%"><table width="100%" border="0" cellpadding="0" cellspacing="0" >
              <tr><td width="75%"><table width="100%" border="0" cellpadding="0" cellspacing="0">
               <tr style="height:40px;" bgcolor="#d3ebf8">
                <td width="10%"><div><label>真实姓名:</label></div></td>
                <td width="30%" align="left"><div class="td_Left"><%:item.c_nvc_realname%></div></td>
              
            </tr>
              
               <tr  style="height:40px;" bgcolor="#97b9f0">
                <td width="10%"><div><label>性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别:</label></div></td>
                <td width="30%" align="left"><div class="td_Left"><%:item.c_nvc_sex%></div></td>
               
            </tr>
                
               <tr  style="height:40px;" bgcolor="#d3ebf8">
                <td width="10%"><div><label>年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;龄</label></div></td>
                <td width="30%" align="left"><div class="td_Left"><%:item.c_i_age%></div></td>               
            </tr></table></td>           
            <td width="25%"><img alt="头像" src="<%:Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/UserPhoto/nophoto.gif") %>" width="113" height="117"/></td></tr>
            </table></td></tr>

            <tr style="height:50px; margin-top:10px" bgcolor="#97b9f0">
                <td width="10%"><div><label>权限:</label></div> </td>
                <td align="left"><div class="td_Left"><%if (item.c_i_pop == 0)
                                                        { %>高级权限<%}
                                                        else
                                                        { %>普通权限<%} %></div></td>
                
                <td width="10%"><div><label>注册时间:</label></div> </td>
                <td align="left"><div class="td_Left"><%:item.c_dt_regDate.ToShortDateString()%></div></td>
               
            </tr>

            <tr style="height:50px; margin-top:10px" bgcolor="#d3ebf8">
                <td width="10%"><div><label>移动电话:</label></div> </td>
                <td align="left"><div class="td_Left"><%:item.c_vc_mobile%></div></td>
                
                <td width="10%"><div><label>手记号码:</label></div> </td>
                <td align="left"><div class="td_Left"><%:item.c_vc_phone%></div></td>
               
            </tr>

             <tr style="height:50px;" bgcolor="#97b9f0">
                <td width="10%"><div><label>QQ:</label></div> </td>
                <td align="left"><div class="td_Left"><%:item.c_vc_qq%></div></td>
                <td width="10%"><div><label>MSN:</label></div> </td>
                <td align="left"><div class="td_Left"><%:item.c_vc_msn%></div></td>
            </tr>
           
            <tr style="height:50px;" bgcolor="#d3ebf8">
                <td  width="10%"><div><label>详细地址</label></div> </td>
                <td  align="left" colspan="3"><div class="td_Left"><%:item.c_nvc_address%></div></td>
            </tr>            
            </table>
            <p>
                <a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/User/EditDetailInfo" style="margin:0px 20px 0px 0px;">修改</a>
                <%if (item.c_i_pop == 1)
             { %> <a href="javascript:;" onclick="deleteInfo();" >删除</a><%} %>
                <a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/User/InfoList" style="margin:0px 0px 0px 20px;">返回</a>                
            </p>
            
        </fieldset>
        <%}
          }%>
        </div>
     </td>
    <td  background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_rightbg.gif") %>">&nbsp;</td>
  </tr>
  <tr>
    <td valign="middle" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_leftbg.gif") %>"><img src="<%=Url.Content

(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/buttom_left2.gif") %>" width="17" height="17" /></td>
      <td  valign="top" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/buttom_bgs.gif") %>"><img src="<%=Url.Content

(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/buttom_bgs.gif") %>" width="17" height="17" /></td>
    <td background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_rightbg.gif") %>"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + 

"/Content/back/images/buttom_right2.gif") %>" width="16" height="17" /></td>
  </tr>
</table>   
    </div>
</body>
</html>
